package com.xja.controller;

import com.xja.entity.Indent;
import com.xja.entity.Room;
import com.xja.entity.pojo.UrByIndent;
import com.xja.service.ZcyService;
import com.xja.service.impl.ZcyServiceImpl;

import java.util.HashMap;
import java.util.List;

/**
 * @author zcy
 * @create 2022-05-05 19:50
 */
public class ZcyController {
    ZcyService service = new ZcyServiceImpl();
    //查找所有房间
    public List<Room> findRoom(){
        return service.findRoom();
    }
    //增加房间
    public boolean addRoom(Room room) {
        return service.addRoom(room);
    }
    //根据id找房间
    public Room findRoomById(int updateId) {
        return service.findRoomById(updateId);
    }
   //更新房间
    public boolean updateRoom(Room updateroom) {
        return service.updateRoom(updateroom);
    }
   //根据id删除房间
    public boolean deleteRoomById(int deleteId) {
        return service.deleteRoomById(deleteId);
    }
    //查找所有订单
    public List<UrByIndent> FindAllIndent(){
        return service.FindAllIndent();
    }
   //根据id删除订单
    public boolean deleteIndentById(int deleteIndentById) {
        return service.deleteIndentById(deleteIndentById);
    }

    public boolean updateIndent(Indent updateIndent) {
        return service.updateIndent(updateIndent);
    }

    public boolean updateStatusById(Integer roomId, Integer status) {
        return service.updateStatusById(roomId,status);
    }
    public HashMap<String, String> findBroom(){
        return service.findBroom();
    }
}
